const puppeteer = require('puppeteer');

(async () => {
  const browser = await puppeteer.launch();
  const page = await browser.newPage();
  await page.setViewport({ // 默认为 800px x 600px
    width: 1000,
    height: 5000
  });
  await page.goto('https://www.apple.com.cn');
  await page.screenshot({ path: 'deploys/apple.png' });
  await browser.close();
})();
